<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "user_account".
 *
 * @property string $id
 * @property int $user_id 用户ID
 * @property int $class 账户类型1为支付宝2为微信
 * @property string $name 账户名
 * @property string $username 账户用户名
 * @property string $telephone 手机号
 * @property int $create_time 创建时间
 */
class UserAccountModel extends \backend\base\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_account';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'class', 'create_time'], 'integer'],
            [['name', 'username'], 'string', 'max' => 255],
            [['telephone'], 'string', 'max' => 11],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'class' => 'Class',
            'name' => '收款姓名',
            'username' => '收款账户',
            'telephone' => 'Telephone',
            'create_time' => 'Create Time',
        ];
    }
}
